package com.aos.erp.schools.model.car.CarVo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;

@Getter
@Setter
public class CarVo implements Serializable {
	private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("驾校ID")
    private Long driversSchoolId;

    @ApiModelProperty("车牌号")
    private String carNumbers;

    @ApiModelProperty("颜色")
    private String colour;

    @ApiModelProperty("发动机号")
    private String engineNumber;

    @ApiModelProperty("车辆型号")
    private String carModel;

    @ApiModelProperty("车辆档型 (1：自动  2：手动)")
    private Integer carProfile;

    @ApiModelProperty("车辆类型 (1:小型轿车  2：客车   3：挂车)")
    private Integer carType;

    @ApiModelProperty("购买时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date buyTime;

    @ApiModelProperty("登记时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date registerTime;

    @ApiModelProperty("燃油类型(1: 汽油   2：柴油)")
    private Integer fuelType;

    @ApiModelProperty("里程")
    @TableField("mileage")
    private String mileage;

    @ApiModelProperty("保险公司")
    private String insurer;

    @ApiModelProperty("保险截止日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date insurerTime;

    @ApiModelProperty("年审截止日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date annualTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updated;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date created;

    @ApiModelProperty("是否删除  （0：否    1：是）")
    private Integer isDel;

    @ApiModelProperty("车辆行驶证图片")
    private Map<String,Object> carTravelCard;

    @ApiModelProperty("车辆图片")
    private List<Map<String,Object>> carPicIds;
}
